package com.chinasofti.demo05;

public class Test01 {
    public static void main(String[] args) {
        new Inter(){
            @Override
            public void method() {
                System.out.println("我是匿名内部类重写的method");
            }

        }.method();
    }
}
interface Inter{
    void method();
}
